
<%@page import="storeMovie.Util.CategoryManager"%>
<%@page import="storeMovie.JavaBean.Movie"%>
<%@page import="storeMovie.JavaBean.Category"%>
<%@page import="java.util.List"%>
<%@page import="storeMovie.Util.MovieManager"%>
<%@page import="java.sql.*"%><?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	String sMovieID = request.getParameter("movieID");
	int movieID = Integer.parseInt(sMovieID);
	MovieManager movieManager = new MovieManager();
	CategoryManager categoryManager = new CategoryManager();
	Movie movie = movieManager.getMovie(movieID);
	Category category = categoryManager.getCategory(movie
			.getMovieCategory());

	out.println("<table>");
	out.println("<tr><td rowspan='3'><img src='"
			+ movie.getMovieImage() + "'/></td>");
	out.println("<td style='padding-left: 20px;font-size: large;'>"
			+ movie.getMovieName() + "</td>");
	out.println("</tr>");
	out
			.println("<tr bgcolor=#efefef><td style='padding-left: 20px;font-size: large;color: red;'><b>Price&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;"
					+ movie.getMoviePrice() + "$</b></td></tr>");
	out
			.println("<tr><td style='padding-left: 20px;font-size: large;'>Category&nbsp;&nbsp;:&nbsp;&nbsp;&nbsp;&nbsp;"
					+ category.getCategoryName() + "</td></tr>");
	out
			.println("<tr><td style='font-size: large;text-align: center;'>Review</td><td bgcolor=#efefef style='padding-left: 20px;'>"
					+ movie.getReview() + "</td></tr>");
	out.println("<tr><td></td><td><p class='readmore'><a id='id"
			+ movie.getMovieId() + "' href='#' onclick='bynow(this.id,"
			+ movie.getMovieId() + ")'>BUY <b>NOW</b></a></p></tr>");
	out.println("</table>");
%>